<?php

namespace App\Filter;

use EloquentFilter\ModelFilter;

class VReportTaskStageCompletionFilter extends ModelFilter
{
    protected $drop_id = false;

    /**
     * Related Models that have ModelFilters as well as the method on the ModelFilter
     * As [relationMethod => [input_key1, input_key2]].
     *
     * @var array
     */
    public $relations = [];

    public function reqId($value)
    {
        return $this->where('req_id','like','%'.$value.'%');
    }

    public function reqName($value)
    {
        return $this->where('req_name','like','%'.$value.'%');
    }
}
